package com.mmlc.meimei.lichengkongjian.been;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/9/29.
 */
public class Condition implements Parcelable{
    private String min;
    private String max;
    private String categoeryId;
    private String brandId;
    private String categoeryName;
    private String brandName;
    private String yearId;
    private String seasonId;
    private String keyword;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getMin() {
        return min;
    }

    public void setMin(String min) {
        this.min = min;
    }

    public String getMax() {
        return max;
    }

    public void setMax(String max) {
        this.max = max;
    }

    public String getCategoeryId() {
        return categoeryId;
    }

    public void setCategoeryId(String categoeryId) {
        this.categoeryId = categoeryId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getYearId() {
        return yearId;
    }

    public void setYearId(String yearId) {
        this.yearId = yearId;
    }

    public String getSeasonId() {
        return seasonId;
    }

    public void setSeasonId(String seasonId) {
        this.seasonId = seasonId;
    }

    public String getCategoeryName() {
        return categoeryName;
    }

    public void setCategoeryName(String categoeryName) {
        this.categoeryName = categoeryName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.min);
        dest.writeString(this.max);
        dest.writeString(this.categoeryId);
        dest.writeString(this.brandId);
        dest.writeString(this.categoeryName);
        dest.writeString(this.brandName);
        dest.writeString(this.yearId);
        dest.writeString(this.seasonId);
        dest.writeString(this.keyword);
    }

    public Condition() {
    }

    protected Condition(Parcel in) {
        this.min = in.readString();
        this.max = in.readString();
        this.categoeryId = in.readString();
        this.brandId = in.readString();
        this.categoeryName = in.readString();
        this.brandName = in.readString();
        this.yearId = in.readString();
        this.seasonId = in.readString();
        this.keyword = in.readString();
    }

    public static final Creator<Condition> CREATOR = new Creator<Condition>() {
        @Override
        public Condition createFromParcel(Parcel source) {
            return new Condition(source);
        }

        @Override
        public Condition[] newArray(int size) {
            return new Condition[size];
        }
    };
}
